﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TestTools : MonoBehaviour
{
    public Transform greenBall;

    void Start()
    {
        Vector3 lo = transform.InverseTransformPoint(greenBall.position);

        var p = transform.position;

        p.x += 1;
        p.y += -1;

        transform.position = p;

        p = transform.localScale;

        p.x *= 1.2f;
        p.y *= 1.2f;

        transform.localScale = p;

        greenBall.position = transform.TransformPoint(lo);
    }

}
